{# Evals > Datasets: each dataset in a row, what its leading comment says it checks, its cases and its last run; a row opens it. New dataset has the model write one (``_evals_new``); Import keeps a YAML file as one. #} {% from "components/macros/feedback.html" import empty_state %} {% from "components/macros/form.html" import action, checkbox, file_button %} {% from "components/macros/layout.html" import card %} {% from "components/macros/table.html" import data_table %}
{{ checkbox("replace", label="Replace", value="true") }} {{ file_button("ai-evals-import-file", "Import", ".yaml,.yml") }}
{{ action("New dataset", hx_dialog(new_url, "data-write data-evals-new"), "primary") }}
{% call card(None, id="ai-evals-datasets") %} {% if summaries %} {{ data_table([ {"key": "dataset", "label": "Dataset", "kind": "link", "target": "#overseer-main"}, {"key": "about", "label": "Checks", "wrap": True}, {"key": "cases", "label": "Cases", "kind": "int", "align": "right"}, {"key": "last", "label": "Last run", "kind": "status"}, ], summaries) }} {% else %} {{ empty_state("No datasets", "Import a YAML file, or have the model write one: each case a message and what should happen.") }} {% endif %} {% endcall %}